<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>作业</title>
	<script>
		   /*var num1=prompt('请输入数字');
		   var num2=prompt('请输入数字');
           var max = num1>num2&&num1<num2 ? num1:num2;
           console.log(max);
           var min = num1>num2&&num1<num2 ? num2:num1;
           console.log(min);*/
           /*var num1=prompt('请输入数字');
		   var num2=prompt('请输入数字');
           var max = num1>num2||num1<num2 ? num2:num1;n
           console.log(max);
           var min = num1>num2||num1<num2 ? num1:num2;
           console.log(min);*/
           var num1=prompt('请输入数字');
		   var num2=prompt('请输入数字');
           var max = !num1>num2 ? num1:num2;
           console.log(max);
           var min = !num1>num2 ? num2:num1;
           console.log(min);
	</script>
</head>
<body>
	
</body>
</html>